<template>
  <c-checkbox-group
    v-bind="$attrs"
    v-on="$listeners"
    :value="value"
    :options="options"
  ></c-checkbox-group>
</template>

<script>
import { mapGetters } from 'vuex'
export default {
  props: {
    value: {
      default: () => [],
    },
  },
  data() {
    return {}
  },
  computed: {
    ...mapGetters(['provinceMainBusiness']),
    options() {
      const data = this.provinceMainBusiness.map(item => {
        return {
          value: item.code,
          label: item.value,
        }
      })
      data.push({ value: 'dirReport', label: '新农直报（唯一指定）' })
      return data
    },
  },
  created() {
    this.$store.dispatch('getProvinceMainBusiness')
  },
  methods: {},
}
</script>
<style lang="scss" scoped></style>
